<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="refresh" content="10;url=/index.html" />
    <!-- 自动跳转到登录页面 -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>403 Forbidden - 重新登录</title>
    <style>
      /* 设置全局字体和背景 */
      body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
        font-family: 'Roboto', sans-serif;
        background-color: #f0f2f5;
        background-size: cover;
        background-position: center;
      }

      .container {
        text-align: center;
        background: rgba(255, 255, 255, 0.9); /* 半透明背景 */
        padding: 3rem;
        border-radius: 12px;
        max-width: 500px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      }

      h1 {
        font-size: 2.5em;
        color: #e74c3c;
        margin-bottom: 1rem;
      }

      p {
        font-size: 1.2em;
        color: #555;
        margin-bottom: 1rem;
      }

      .image-container {
        margin: 2rem 0;
      }

      img {
        width: 200px;
        height: 200px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #e74c3c;
      }

      .btn {
        background-color: #e74c3c;
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 1em;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
      }

      .btn:hover {
        background-color: #c0392b;
      }

      /* 动画效果 */
      .fade-in {
        animation: fadeIn 1.5s ease-in;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
    </style>
  </head>
  <body>
    <div class="container fade-in">
      <h1>403 Forbidden</h1>
      <p>Cookie 不存在或已失效，请重新登录</p>
      <div class="image-container">
        <img src="../static/images/403.png" alt="Error Image" />
      </div>
      <p>10 秒后将自动跳转到登录页面...</p>
      <p>
        <button class="btn" onclick="window.location.href='/index.html'">立即登录</button>
      </p>
    </div>
  </body>
</html>
